Example #1
0
 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())
Example #2
0
 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())
Example #3
0
 def test_get_properties_when_no_properties(self):
     self.assertEqual([], get_properties())
Example #4
0
 def test_get_properties_when_no_properties(self):
     self.assertEqual([], get_properties())