def test_read_from_disk():
    old_fname = with_side_one.FNAME
    with_side_one.FNAME = TMP

    open(TMP, 'w').write(TEXT)
    assert with_side_one.read_from_disk() == DESIRED

    remove(TMP)
    with_side_one.FNAME = old_fname
Example #2
0
def test_read_from_disk():
    old_fname = with_side_one.FNAME
    with_side_one.FNAME = TMP

    open(TMP, 'w').write(TEXT)
    assert with_side_one.read_from_disk() == DESIRED

    remove(TMP)
    with_side_one.FNAME = old_fname
Example #3
0
 def test_read_from_disk(self):
     res = with_side_one.read_from_disk()
     self.assertEqual(res, DESIRED)
 def test_read_from_disk(self):
     res = with_side_one.read_from_disk()
     self.assertEqual(res, DESIRED)