Ejemplo n.º 1
0
 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')
Ejemplo n.º 4
0
 def test_simple(self):
     assert_equal(
         InventoryHarvester._get_publisher_abbreviation(
             MockObject(extras={}, title='Cabinet Office')), 'CO')