def test_unsubscribe_unknown_command(): c = chat.Chat(66026064) if c.is_exist(): c.remove() app.process(66026064, "Привет", "1439105337") app.process(66026064, "/subscribe test stop", "1438600337") c.remove()
def test_subscribe_news_auto_command(): c = chat.Chat(66026064) if c.is_exist(): c.remove() app.process(66026064, "Привет", "1439105337") app.process(66026064, "/subscribe news auto", "1438600337") c.remove() time.sleep(30)
def test_help_command(): c = chat.Chat(66026064) if c.is_exist(): c.remove() app.process(66026064, "Привет", "1439105337") app.process(66026064, "/help", "1438600337") c.remove() time.sleep(30)
def test_subscribe_digest_command(): c = chat.Chat(66026064) if c.is_exist(): c.remove() app.process(66026064, "Привет", "1439105337") app.process(66026064, "/subscribe digest", "1438600337") app.process(66026064, "/subscribe", "1438600337") #c.remove()
def test_configure_subscriptions(): c = chat.Chat(66026064) if c.is_exist(): c.remove() app.process(66026064, "Привет", "1439105337") channels = c.get_subscriptions() assert channels[0] == "news" c.remove()
def test_remove(): c = chat.Chat(66026064) if c.is_exist(): assert c.remove() == True
def test_create(): c = chat.Chat(66026064) if c.is_exist(): c.remove() assert c.create() == True c.remove()