def test_build_file_duplicates(self):
    self.add_to_build_file('BUILD', 'fake(name="foo")\n')
    self.add_to_build_file('BUILD', 'fake(name="foo")\n')
    with self.assertRaises(BuildFileParser.AddressableConflictException):
        base_build_file = self.create_buildfile('BUILD')
        self.build_file_parser.parse_build_file(base_build_file)
def test_build_file_duplicates(self):
    self.add_to_build_file('BUILD', 'fake(name="foo")\n')
    self.add_to_build_file('BUILD', 'fake(name="foo")\n')
    with self.assertRaises(BuildFileParser.AddressableConflictException):
        base_build_file = self.create_buildfile('BUILD')
        self.build_file_parser.parse_build_file(base_build_file)