コード例 #1
0
 def test_us20(self):
     (listOfPeople, listOfFamilies) = project3.gedComParse('US_20_test.ged')
     condition1 = userStory20.us_20(listOfPeople, listOfFamilies)
     (listOfPeople2, listOfFamilies2) = project3.gedComParse('correct.ged')
     condition2 = userStory20.us_20(listOfPeople2, listOfFamilies2)
     self.assertEqual(condition1, False)
     self.assertEqual(condition2, True)
コード例 #2
0
 def test_us03(self):
     (listOfPeople,
      listOfFamilies) = project3.gedComParse('US_01_02_test.ged')
     condition1 = userStory03.userStory03(listOfPeople)
     (listOfPeople2, listOfFamilies2) = project3.gedComParse('correct.ged')
     condition2 = userStory03.userStory03(listOfPeople2)
     self.assertEqual(condition1, True)
     self.assertEqual(condition2, True)
コード例 #3
0
 def test_us18(self):
     (listOfPeople, listOfFamilies) = project3.gedComParse('US_18_test.ged')
     condition1 = userStory18.US_18(listOfPeople)
     (listOfPeople2, listOfFamilies2
      ) = project3.gedComParse('My-Family-9-Sep-2018-162.ged')
     condition2 = userStory18.US_18(listOfPeople2)
     self.assertEqual(condition1, False)
     self.assertEqual(condition2, True)
コード例 #4
0
 def test_us10(self):
     (listOfPeople, listOfFamilies) = project3.gedComParse('US_10_test.ged')
     condition1 = userStory10.us_10(listOfPeople, listOfFamilies)
     (listOfPeople2, listOfFamilies2
      ) = project3.gedComParse('My-Family-9-Sep-2018-162.ged')
     condition2 = userStory10.us_10(listOfPeople2, listOfFamilies2)
     self.assertFalse(condition1)
     self.assertTrue(condition2)
コード例 #5
0
import userStory01
import userStory02
import userStory09
import userStory10
import userStory17
import userStory18
import userStory22
import userStory25
import userStory26
import project3

(listOfPeople, listOfFamilies) = project3.gedComParse('error.ged')
project3.present(listOfPeople, listOfFamilies)
(listOfPeople1, listOfFamilies1) = project3.gedComParse('correct.ged')
project3.present(listOfPeople1, listOfFamilies1)

userStory01.userStory01(listOfPeople, listOfFamilies)
userStory02.userStory02(listOfPeople, listOfFamilies)
userStory09.us_09(listOfFamilies, listOfPeople)
userStory10.us_10(listOfFamilies, listOfPeople)
userStory17.US_17(listOfPeople, listOfFamilies)
userStory18.US_18(listOfPeople)
userStory25.userStory25(listOfPeople, listOfFamilies)
userStory26.us_26(listOfFamilies, listOfPeople)

userStory01.userStory01(listOfPeople1, listOfFamilies1)
userStory02.userStory02(listOfPeople1, listOfFamilies1)
userStory09.us_09(listOfFamilies1, listOfPeople1)
userStory10.us_10(listOfFamilies1, listOfPeople1)
userStory17.US_17(listOfPeople1, listOfFamilies1)
userStory18.US_18(listOfPeople1)