Пример #1
0
 def test_score_simple_none(self):
     self.assertEqual(sc.score_simplicity(None), 0)
Пример #2
0
 def test_score_simple5(self):
     self.assertEqual(sc.score_simplicity('perfect'), 5)
Пример #3
0
 def test_score_simple_empty(self):
     self.assertEqual(sc.score_simplicity(''), 0)
Пример #4
0
 def test_score_simple3(self):
     self.assertEqual(sc.score_simplicity('not so perfect'), 3)
Пример #5
0
 def test_score_simple4(self):
     self.assertEqual(sc.score_simplicity('not perfect'), 4)
Пример #6
0
 def test_score_simple1(self):
     self.assertEqual(sc.score_simplicity('a very poor name indeed'), 1)
Пример #7
0
 def test_score_simple2(self):
     self.assertEqual(sc.score_simplicity('not all that great'), 2)
Пример #8
0
 def test_score_simple_empty(self):
     self.assertEqual(sc.score_simplicity(''), 0)
Пример #9
0
 def test_score_simple_none(self):
     self.assertEqual(sc.score_simplicity(None), 0)
Пример #10
0
 def test_score_simple5(self):
     self.assertEqual(sc.score_simplicity('perfect'), 5)
Пример #11
0
 def test_score_simple4(self):
     self.assertEqual(sc.score_simplicity('not perfect'), 4)
Пример #12
0
 def test_score_simple3(self):
     self.assertEqual(sc.score_simplicity('not so perfect'), 3)
Пример #13
0
 def test_score_simple2(self):
     self.assertEqual(sc.score_simplicity('not all that great'), 2)
Пример #14
0
 def test_score_simple1(self):
     self.assertEqual(sc.score_simplicity('a very poor name indeed'), 1)