Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_grid_columns_integer():
assert_raises(ArgumentTypeError, mxn_type, 'ax4')
assert_raises(ArgumentTypeError, mxn_type, '4.1x4')
def test_grid_default():
test_grid = mxn_type('4x4')
assert_equals(test_grid.x, 4)
assert_equals(test_grid.y, 4)