def test_get_properties_when_there_is_one_property(self): stuff = Stuff.objects.create(name=u'Стакан1', description=u'Хороший стакан', price=Decimal("10.0")) prop = Property.objects.create(value=u'TestProp', stuff=stuff) self.assertEqual([prop], get_properties())
def test_get_properties_when_no_properties(self): self.assertEqual([], get_properties())