def test_size_can_use_attr_methods(self): size = Size(self.value) self.build_and_assert_expression( size.eq(self.value), { 'format': '{0} {operator} {1}', 'operator': '=', 'values': (size, self.value) })
def test_size(self): self.build_and_assert_expression( Size(self.value), { 'format': '{operator}({0})', 'operator': 'size', 'values': (self.value, ) })
def test_size_can_use_and(self): size = Size(self.value) ae = AttributeExists(self.value) self.build_and_assert_expression( size & ae, {'format': '({0} {operator} {1})', 'operator': 'AND', 'values': (size, ae)})
def test_size(self): self.assertEqual(self.attr.size(), Size(self.attr))
def test_size_can_use_attr_methods(self): size = Size(self.value) self.build_and_assert_expression( size.eq(self.value), {'format': '{0} {operator} {1}', 'operator': '=', 'values': (size, self.value)})
def test_size_can_use_attr_methods(self): size = Size(self.value) self.build_and_assert_expression( size.eq(self.value), {"format": "{0} {operator} {1}", "operator": "=", "values": (size, self.value)} )
def test_size(self): assert self.attr.size() == Size(self.attr)