Exemple #1
0
def test_subKeySearch():
    assert Search.subKeySearch(data, "stC-3-") == subKeySearchAnswear
    assert Search.subKeySearch(data, "gns@otgnbs@eoutbjnr@[irn") == []
Exemple #2
0
def test_endValueSearch():
    assert Search.endValueSearch(data, "Dict6") == endValueSearchAnswear
    assert Search.endValueSearch(data, "ga@oubvaourb@iu") == []
Exemple #3
0
def test_keySearch():
    assert Search.keySearch(data, "2.5") == keySearchAnswear
    assert Search.keySearch(data, "anva@urav@u@ub") == []
Exemple #4
0
def test_subValueSearch():
    assert Search.subValueSearch(data, "list") == subValueSearchAnswear
    assert Search.subValueSearch(data, "lisgpewbu@piub4er") == []
Exemple #5
0
def test_startValueSearch():
    assert Search.startValueSearch(data, "listIn") == startValueSearchAnswear
    assert Search.startValueSearch(data, "gh@reaugaburgbe@ru") == []
Exemple #6
0
def test_getAll():
    assert Search.getAll(data) == getAllAnswear
Exemple #7
0
def test_valueSearch():
    assert Search.valueSearch(data, "listInDict6") == valueSearchAnswear
    assert Search.valueSearch(data, "listInDict6gbar@urba@") == []
Exemple #8
0
 def test_subKeySearch(self):
     self.assertEqual(subKeySearchAnswear,
                      Search.subKeySearch(data, "stC-3-"))
     self.assertEqual([],
                      Search.subKeySearch(data, "gns@otgnbs@eoutbjnr@[irn"))
Exemple #9
0
def test_typeSearch():
    assert Search.typeSearch(data, str) == typeSearchAnswer
Exemple #10
0
 def test_endValueSearch(self):
     self.assertEqual(endValueSearchAnswear,
                      Search.endValueSearch(data, "Dict6"))
     self.assertEqual([], Search.endValueSearch(data, "ga@oubvaourb@iu"))
Exemple #11
0
 def test_keySearch(self):
     self.assertEqual(keySearchAnswear, Search.keySearch(data, "2.5"))
     self.assertEqual([], Search.keySearch(data, "anva@urav@u@ub"))
Exemple #12
0
 def test_startValueSearch(self):
     self.assertEqual(startValueSearchAnswear,
                      Search.startValueSearch(data, "listIn"))
     self.assertEqual([], Search.startValueSearch(data,
                                                  "gh@reaugaburgbe@ru"))
Exemple #13
0
 def test_subValueSearch(self):
     self.assertEqual(subValueSearchAnswear,
                      Search.subValueSearch(data, "list"))
     self.assertEqual([], Search.subValueSearch(data, "lisgpewbu@piub4er"))
Exemple #14
0
 def test_valueSearch(self):
     self.assertEqual(valueSearchAnswear,
                      Search.valueSearch(data, "listInDict6"))
     self.assertEqual([], Search.valueSearch(data, "listInDict6gbar@urba@"))
Exemple #15
0
 def test_getAll(self):
     self.assertEqual(getAllAnswear, Search.getAll(data))
Exemple #16
0
 def test_typeSearch(self):
     self.assertEqual(typeSearchAnswer, Search.typeSearch(data, str))