def test_self_name_int(self): sp = SettingProperties() sp.key = u"testintkey" sp.int_value = 123 sp.save() self.assertEqual(sp.__unicode__(), u"testintkey")
def test_self_name_string(self): sp = SettingProperties() sp.key = u"teststrkey" sp.str_value = u"test string" sp.save() self.assertEqual(sp.__unicode__(), u"teststrkey")