Example #1
0
def test_main_call_dump_only():

    tfile = "nfile.cpickle"
    if os.path.exists(tfile):
        os.remove(tfile)

    bmhack.main("ftest.cpickle", False, False, None, tfile)
    assert os.path.exists(tfile), "Did not create file!"
    assert cPickle.load(open("ftest.cpickle")) == cPickle.load(open(tfile)), "Files unequal!"
Example #2
0
def test_main_call_dump_only():
    
    tfile = 'nfile.cpickle'
    if os.path.exists(tfile):
        os.remove(tfile)
        
    bmhack.main('ftest.cpickle', False, False, None, tfile)
    assert os.path.exists(tfile), 'Did not create file!'
    assert cPickle.load(open('ftest.cpickle')) == cPickle.load(open(tfile)), 'Files unequal!'
Example #3
0
def test_main_call_csv_only():

    tfile = "nfile.csv"
    if os.path.exists(tfile):
        os.remove(tfile)

    bmhack.main("ftest.cpickle", False, False, tfile, None)
    assert os.path.exists(tfile), "Did not create file!"

    check_equal_files(tfile, "ftest.csv")
Example #4
0
def test_main_call_csv_only():
    
    tfile = 'nfile.csv'
    if os.path.exists(tfile):
        os.remove(tfile)
        
    bmhack.main('ftest.cpickle', False, False, tfile, None)
    assert os.path.exists(tfile), 'Did not create file!'

    check_equal_files(tfile, 'ftest.csv')