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
def test_read_from_disk(self): res = with_side_one.read_from_disk() self.assertEqual(res, DESIRED)