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