def test_default_single_depth(self): self.assertEqual( dict_lookup( self.theDict, ['nothing'] ), None )
def test_default_multi_depth(self): self.assertEqual( dict_lookup( self.theDict, ['pandas', 'bad'] ), None )
def test_dict(self): self.assertEqual( dict_lookup( self.theDict, ['foxes'] ), self.theDict['foxes'] )
def test_basic_two(self): self.assertEqual( dict_lookup( self.theDict, ['foxes', 'are'] ), 'sneaky' )
def test_basic_one(self): self.assertEqual( dict_lookup( self.theDict, ['pandas', 'and'] ), 'awesome' )
def test_user_default_multi_depth(self): self.assertEqual( dict_lookup( self.theDict, ['pandas', 'bad'], 'NO, THAT\'S A DAMN DIRTY LIE' ), 'NO, THAT\'S A DAMN DIRTY LIE' )
def test_user_default_single_depth(self): self.assertEqual( dict_lookup( self.theDict, ['nothing'], 'Nobody here but us chickens' ), 'Nobody here but us chickens' )
def test_basic_none(self): self.assertEqual( dict_lookup( self.theDict, ['badgers', 'are'], 'Badgers are none? What?' ), None )
def test_user_default_multi_depth(self): self.assertEqual( dict_lookup(self.theDict, ['pandas', 'bad'], 'NO, THAT\'S A DAMN DIRTY LIE'), 'NO, THAT\'S A DAMN DIRTY LIE')
def test_default_multi_depth(self): self.assertEqual(dict_lookup(self.theDict, ['pandas', 'bad']), None)
def test_user_default_single_depth(self): self.assertEqual( dict_lookup(self.theDict, ['nothing'], 'Nobody here but us chickens'), 'Nobody here but us chickens')
def test_default_single_depth(self): self.assertEqual(dict_lookup(self.theDict, ['nothing']), None)
def test_dict(self): self.assertEqual(dict_lookup(self.theDict, ['foxes']), self.theDict['foxes'])
def test_basic_none(self): self.assertEqual( dict_lookup(self.theDict, ['badgers', 'are'], 'Badgers are none? What?'), None)
def test_basic_two(self): self.assertEqual(dict_lookup(self.theDict, ['foxes', 'are']), 'sneaky')
def test_basic_one(self): self.assertEqual(dict_lookup(self.theDict, ['pandas', 'and']), 'awesome')