コード例 #1
0
ファイル: test_app.py プロジェクト: pombredanne/tsuru.io
 def test_parse_github_name_splits_correctly_with_only_one_name(self):
     first, last = app.parse_github_name({"name": "First"})
     self.assertEqual(first, "First")
     self.assertEqual(last, "")
コード例 #2
0
ファイル: test_app.py プロジェクト: pombredanne/tsuru.io
 def test_parse_github_name_splits_correctly_with_more_than_two_names(self):
     first, last = app.parse_github_name({"name": "First Lots Of Other Names Last"})
     self.assertEqual(first, "First")
     self.assertEqual(last, "Last")