def test_relationship(self):
     past_team = Relationship('past_team', PAST_TEAM_RELATIONSHIP)
     one = past_team.get(0)
     self.assertEqual(one.first_name, "First")
     self.assertEqual(one.permalink, "first-last")
     self.assertEqual('past_team', past_team.name)
Beispiel #2
0
 def test_relationship(self):
     past_team = Relationship('past_team', PAST_TEAM_RELATIONSHIP)
     one = past_team.get(0)
     self.assertEqual(one.first_name, "First")
     self.assertEqual(one.permalink, "first-last")
     self.assertEqual('past_team', past_team.name)
 def test_one_to_many_relationship(self):
     past_team = Relationship('past_team', PAST_TEAM_RELATIONSHIP)
     job = past_team.get(0)
     self.assertEqual(job.title, 'Co-Founder / President')
     self.assertEqual(job.person.first_name, 'Tom')
     self.assertEqual('past_team', past_team.name)
 def test_one_to_many_relationship(self):
     past_team = Relationship("past_team", PAST_TEAM_RELATIONSHIP)
     one = past_team.get(0)
     self.assertEqual(one.first_name, "First")
     self.assertEqual("past_team", past_team.name)
Beispiel #5
0
 def test_one_to_many_relationship(self):
     past_team = Relationship('past_team', PAST_TEAM_RELATIONSHIP)
     job = past_team.get(0)
     self.assertEqual(job.title, 'Co-Founder / President')
     self.assertEqual(job.person.first_name, 'Tom')
     self.assertEqual('past_team', past_team.name)
Beispiel #6
0
 def test_one_to_many_relationship(self):
     past_team = Relationship('past_team', PAST_TEAM_RELATIONSHIP)
     one = past_team.get(0)
     self.assertEqual(one.first_name, "First")
     self.assertEqual('past_team', past_team.name)