def setup_class(self): self.metadata = submit.load_metadata('test/_coursera')
def test_001(self): with pytest.raises(SystemExit): submit.load_metadata('test/_missing')
def test_002(self): with pytest.raises(SystemExit): submit.load_metadata('test/_empty')
def setup_method(self, _): self.meta_data = submit.load_metadata('./test/_coursera2')
def test_001(self): meta_data = submit.load_metadata('test/_coursera') assert len(meta_data.part_data) == 6
def test_002(self): with pytest.raises(SystemExit): submit.load_metadata('./test/_empty')
def test_001(self): with pytest.raises(SystemExit): submit.load_metadata('./test/_missing')