def test_hard(self): assert_equal( InventoryHarvester._get_publisher_abbreviation( MockObject( extras={}, title='Department for Environment, Food & Rural Affairs')), 'DEFRA')
def test_hard(self): assert_equal(InventoryHarvester._get_publisher_abbreviation(MockObject(extras={}, title='Department for Environment, Food & Rural Affairs')), 'DEFRA')
def test_simple(self): assert_equal(InventoryHarvester._get_publisher_abbreviation(MockObject(extras={}, title='Cabinet Office')), 'CO')
def test_simple(self): assert_equal( InventoryHarvester._get_publisher_abbreviation( MockObject(extras={}, title='Cabinet Office')), 'CO')