def test_update_master_not_search_category(self): cat_i = 0 test_master = {"test_subreddit": []} search_for = 10 sub = "test_subreddit" Basic.GetInput()._update_master(cat_i, test_master, search_for, sub) assert test_master == {"test_subreddit": [[0, 10]]}
def test_update_master_search_category(self): cat_i = 5 test_master = {"test_subreddit": []} search_for = "test string" sub = "test_subreddit" Basic.GetInput()._update_master(cat_i, test_master, search_for, sub) assert test_master == {"test_subreddit": [[5, "test string"]]}
def test_get_input_init_method_categories_instance_variable(self): assert Basic.GetInput()._categories == Global.categories
def test_print_subs_init_method_s_t_instance_variable(self): assert Basic.PrintSubs()._s_t == Global.s_t