(self)
| 36 | |
| 37 | class TestLibraryInfo: |
| 38 | def test_simple(self): |
| 39 | with temppath('foo.ini') as path: |
| 40 | with open(path, 'w') as f: |
| 41 | f.write(simple) |
| 42 | pkg = os.path.splitext(path)[0] |
| 43 | out = read_config(pkg) |
| 44 | |
| 45 | assert_(out.cflags() == simple_d['cflags']) |
| 46 | assert_(out.libs() == simple_d['libflags']) |
| 47 | assert_(out.name == simple_d['name']) |
| 48 | assert_(out.version == simple_d['version']) |
| 49 | |
| 50 | def test_simple_variable(self): |
| 51 | with temppath('foo.ini') as path: |