Ejemplo n.º 1
0
 def test_get_member(self):
     # clear the cached attributes of the newly created member
     cache.clear()
     # retrieve the member from db + Neo
     member2 = Member.objects.get(username=self.immutable_member.username)
     for key in NEO_ATTR.union(ADDRESS_FIELDS):
         self.assertEqual(getattr(self.immutable_member, key), getattr(member2, key))