def test_parse_args_where_action_is_list_and_item_is_company(self): # initialize action = "list" item = "company" invoice = Invoice() args = [self.INVOICE_PY, "--action", action, "--item", item] # test invoice.parse_args(args) # verify self.assertEqual(invoice.args.action, action) self.assertEqual(invoice.args.item, item) return
def test_parse_args_where_action_is_delete_and_item_is_automatic_invoice( self): # initialize action = "delete" item = "automatic-invoice" invoice = Invoice() args = [self.INVOICE_PY, "--action", action, "--item", item] # test invoice.parse_args(args) # verify self.assertEqual(invoice.args.action, action) self.assertEqual(invoice.args.item, item) return