Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_method(self):
self.file = File(
{
"index": "1",
"path": "/some/file/path.txt",
"length": "2097152",
"completedLength": "2048",
"selected": "true",
"uris": [{"uri": "some uri", "status": "used"}, {"uri": "some other uri", "status": "waiting"}],
}
def test_eq_method(self):
assert self.file == File({"path": "/some/file/path.txt"})
def test_init_method(self):
assert File({})