Example #1
0
 def test_multiple(self):
     self.assertEqual({
         ('200 OK', None): ['foo'],
         ('404 Not Found', 'Cannot find'): ['bar']},
         webdav.propstat_by_status([
             webdav.PropStatus('200 OK', None, 'foo'),
             webdav.PropStatus('404 Not Found', 'Cannot find', 'bar')]))
Example #2
0
 def test_multiple(self):
     self.assertEqual(
         {
             ("200 OK", None): ["foo"],
             ("404 Not Found", "Cannot find"): ["bar"],
         },
         webdav.propstat_by_status([
             webdav.PropStatus("200 OK", None, "foo"),
             webdav.PropStatus("404 Not Found", "Cannot find", "bar"),
         ]),
     )
Example #3
0
 def test_one(self):
     self.assertEqual({
         ('200 OK', None): ['foo']},
         webdav.propstat_by_status([
             webdav.PropStatus('200 OK', None, 'foo')]))
Example #4
0
 def test_none(self):
     self.assertEqual({}, webdav.propstat_by_status([]))
Example #5
0
 def test_one(self):
     self.assertEqual(
         {("200 OK", None): ["foo"]},
         webdav.propstat_by_status(
             [webdav.PropStatus("200 OK", None, "foo")]),
     )