예제 #1
0
 def test_has_false(self):
     assert shackles.has(obj, 'e.b') == False
예제 #2
0
 def test_has_list(self):
     assert shackles.has(obj, ['a','b']) == True
     assert shackles.has(obj, ['a','b','name']) == True
예제 #3
0
 def test_has_tuple(self):
     assert shackles.has(obj, ('a','b')) == True
     assert shackles.has(obj, ('a','b','name')) == True
예제 #4
0
 def test_has_str(self):
     assert shackles.has(obj, 'a.b') == True
     assert shackles.has(obj, 'a.b.name') == True
예제 #5
0
 def test_has_false(self):
     assert shackles.has(self.obj, 'e.b') == False
예제 #6
0
 def test_has_tuple(self):
     assert shackles.has(self.obj, ('a', 'b')) == True
     assert shackles.has(self.obj, ('a', 'b', 'name')) == True
예제 #7
0
 def test_has_list(self):
     assert shackles.has(self.obj, ['a', 'b']) == True
     assert shackles.has(self.obj, ['a', 'b', 'name']) == True
예제 #8
0
 def test_has_str(self):
     assert shackles.has(self.obj, 'a.b') == True
     assert shackles.has(self.obj, 'a.b.name') == True