def test_repeated_add_import(): """Don't repeat import statements on render""" d = Decompiler() d.add_import('import numpy as np') d.add_import('import numpy as np') assert d.render() == 'import numpy as np'
def test_add_import(): d = Decompiler() d.add_import('import numpy as np') assert d.render() == 'import numpy as np'