Exemple #1
0
 def test_9(self):
     books_type = [
         "YOUNGADULT", "YOUNGADULT", "YOUNGADULT", "YOUNGADULT",
         "YOUNGADULT"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #2
0
 def test_7(self):
     books_type = [
         "SCIENCEFICTION", "SCIENCEFICTION", "SCIENCEFICTION",
         "SCIENCEFICTION", "SCIENCEFICTION"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #3
0
 def test_8(self):
     books_type = [
         "ADVENTURE", "ADVENTURE", "ADVENTURE", "ADVENTURE", "ADVENTURE"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #4
0
 def test_4(self):
     books_type = ["CRIME", "CRIME", "CRIME", "CRIME", "CRIME"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #5
0
 def test_5(self):
     books_type = ["TRAVEL", "TRAVEL", "TRAVEL", "TRAVEL", "TRAVEL"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #6
0
 def test_2(self):
     books_type = [
         "PHILOSOPHY", "PHILOSOPHY", "PHILOSOPHY", "PHILOSOPHY",
         "PHILOSOPHY"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #7
0
 def test_3(self):
     books_type = [
         "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #8
0
 def test_1(self):
     books_type = ["HISTORY", "HISTORY", "HISTORY", "HISTORY", "HISTORY"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #9
0
 def test_f(self):
     books_type = ["NONE", "NONE", "NONE", "NONE", "NONE"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), -1)
Exemple #10
0
 def test_e(self):
     books_type = [
         "BIOGRAPHY", "PHILOSOPHY", "CLASSIC", "HISTORY", "HORROR"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #11
0
 def test_c(self):
     books_type = ["HORROR", "HORROR", "HORROR", "HORROR", "HORROR"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
Exemple #12
0
 def test_b(self):
     books_type = ["HORROR", "CRIME", "YOUNGADULT", "SCIENCE", "CRIME"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)