def test_barracuda_converter():
    path_prefix = os.path.dirname(os.path.abspath(__file__))
    tmpfile = os.path.join(tempfile._get_default_tempdir(), (next(tempfile._get_candidate_names()) + '.nn'))
    if os.path.isfile(tmpfile):
        os.remove(tmpfile)
    tf2bc.convert((path_prefix + '/BasicLearning.pb'), tmpfile)
    assert os.path.isfile(tmpfile)
    assert (os.path.getsize(tmpfile) > 100)
    os.remove(tmpfile)
def test_barracuda_converter():
    path_prefix = os.path.dirname(os.path.abspath(__file__))
    tmpfile = os.path.join(tempfile._get_default_tempdir(), (next(tempfile._get_candidate_names()) + '.nn'))
    if os.path.isfile(tmpfile):
        os.remove(tmpfile)
    tf2bc.convert((path_prefix + '/BasicLearning.pb'), tmpfile)
    assert os.path.isfile(tmpfile)
    assert (os.path.getsize(tmpfile) > 100)
    os.remove(tmpfile)