Пример #1
0
 def test_weak_match_something(self):
     etag = self._makeOne()
     assert not etag.weak_match('anything')
Пример #2
0
 def test_weak_match_something(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match('anything'), True)
Пример #3
0
 def test_weak_match_something(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match('anything'), True)
Пример #4
0
 def test_weak_match_None(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match(None), False)
Пример #5
0
 def test_weak_match_None(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match(None), False)
Пример #6
0
 def test_weak_match_something(self):
     etag = self._makeOne()
     assert not etag.weak_match('anything')
Пример #7
0
 def test_weak_match_something(self):
     etag = self._makeOne()
     with pytest.raises(DeprecationWarning):
         etag.weak_match('anything')
Пример #8
0
 def test_weak_match_empty_list(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match([]), True)
Пример #9
0
 def test_weak_match_empty_string(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match(''), False)
Пример #10
0
 def test_weak_match_empty_string(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match(''), False)
Пример #11
0
 def test_weak_match_empty_list(self):
     etag = self._makeOne()
     self.assertEqual(etag.weak_match([]), False)