Drop the unit assertion the black-box test covers
This commit is contained in:
@@ -92,7 +92,6 @@ class MarkTrusted(unittest.TestCase):
|
|||||||
self.assertEqual(formats.mark_trusted(config, ["/a", "/b", "/c"]), ({"other": 1, "projects": {"/a": {"hasTrustDialogAccepted": True}, "/b": {"hasTrustDialogAccepted": True, "kept": True}, "/c": {"hasTrustDialogAccepted": True}}}, ["/b", "/c"]))
|
self.assertEqual(formats.mark_trusted(config, ["/a", "/b", "/c"]), ({"other": 1, "projects": {"/a": {"hasTrustDialogAccepted": True}, "/b": {"hasTrustDialogAccepted": True, "kept": True}, "/c": {"hasTrustDialogAccepted": True}}}, ["/b", "/c"]))
|
||||||
self.assertEqual(json.dumps(config), handed)
|
self.assertEqual(json.dumps(config), handed)
|
||||||
self.assertEqual(formats.mark_trusted({}, ["/a"]), ({"projects": {"/a": {"hasTrustDialogAccepted": True}}}, ["/a"]))
|
self.assertEqual(formats.mark_trusted({}, ["/a"]), ({"projects": {"/a": {"hasTrustDialogAccepted": True}}}, ["/a"]))
|
||||||
self.assertEqual(formats.mark_trusted({"projects": {"/a": 1}}, ["/a"]), Failure('projects["/a"] is not an object'))
|
|
||||||
|
|
||||||
|
|
||||||
class Grounded(unittest.TestCase):
|
class Grounded(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user