def METHOD_NAME(self):
    self.assertEqual("Computer", account.leaf("Expenses:Toys:Computer"))
    self.assertEqual("Toys", account.leaf("Expenses:Toys"))
    self.assertEqual("Expenses", account.leaf("Expenses"))
    self.assertEqual(None, account.leaf(""))