示例#1
0
    def test_create_person(self):
        name = "Nate Ledford"
        twitter = "nateledford"

        result = Person.create_person(self.session, name, twitter=twitter)

        self.assertIsNotNone(result)
        self.assertEqual(result.Name, name)
        self.assertEqual(result.TwitterUserName, twitter)
示例#2
0
 def test_get_people(self):
     result = Person.get_people(self.session)
     self.assertIsNotNone(result)
     self.assertGreater(len(result), 0)