Exemplo n.º 1
0
    def test(self, tmp_work_path, import_statement, method, params):
        self.create_setuppy(import_statement, method, params)

        expected = ExtractedMetadata(**params)
        actual = setuppy.extract("setup.py", workdir=".")

        assert str(actual) == str(expected)
        assert actual == expected
Exemplo n.º 2
0
 def test_info_extraction(self):
     expected = ExtractedMetadata(**self.params)
     actual = setuppy.extract("setup.py")
     self.assertThat(str(actual), Equals(str(expected)))
     self.assertThat(actual, Equals(expected))