def test_sibling_build_files_duplicates(self):
    self.add_to_build_file('BUILD', dedent('\n      fake(name="base",\n           dependencies=[\n             \':foo\',\n           ])\n      '))
    self.add_to_build_file('BUILD.foo', dedent('\n      fake(name="foo",\n           dependencies=[\n             \':bat\',\n           ])\n      '))
    self.add_to_build_file('./BUILD.bar', dedent('\n      fake(name="base")\n      '))
    with self.assertRaises(BuildFileParser.SiblingConflictException):
        self.build_file_parser.address_map_from_build_files(BuildFile.get_build_files_family(FileSystemProjectTree(self.build_root), '.'))
def test_sibling_build_files_duplicates(self):
    self.add_to_build_file('BUILD', dedent('\n      fake(name="base",\n           dependencies=[\n             \':foo\',\n           ])\n      '))
    self.add_to_build_file('BUILD.foo', dedent('\n      fake(name="foo",\n           dependencies=[\n             \':bat\',\n           ])\n      '))
    self.add_to_build_file('./BUILD.bar', dedent('\n      fake(name="base")\n      '))
    with self.assertRaises(BuildFileParser.SiblingConflictException):
        self.build_file_parser.address_map_from_build_files(BuildFile.get_build_files_family(FileSystemProjectTree(self.build_root), '.'))