def test_read_dep_makefile(self):
    input = StringIO(((((((os.path.abspath('foo') + ': bar\n') + 'baz qux: \\ \n') + 'hoge \\\n') + 'piyo \\\n') + 'fuga\n') + 'fuga:\n'))
    result = list(read_dep_makefile(input))
    self.assertEqual(len(result), 2)
    self.assertEqual(list(result[0].targets()), [os.path.abspath('foo').replace(os.sep, '/')])
    self.assertEqual(list(result[0].dependencies()), ['bar'])
    self.assertEqual(list(result[1].targets()), ['baz', 'qux'])
    self.assertEqual(list(result[1].dependencies()), ['hoge', 'piyo', 'fuga'])
def test_read_dep_makefile(self):
    input = StringIO(((((((os.path.abspath('foo') + ': bar\n') + 'baz qux: \\ \n') + 'hoge \\\n') + 'piyo \\\n') + 'fuga\n') + 'fuga:\n'))
    result = list(read_dep_makefile(input))
    self.assertEqual(len(result), 2)
    self.assertEqual(list(result[0].targets()), [os.path.abspath('foo').replace(os.sep, '/')])
    self.assertEqual(list(result[0].dependencies()), ['bar'])
    self.assertEqual(list(result[1].targets()), ['baz', 'qux'])
    self.assertEqual(list(result[1].dependencies()), ['hoge', 'piyo', 'fuga'])