Esempio n. 1
0
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()
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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()
Esempio n. 5
0
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()
Esempio n. 6
0
def test_remove():
    c = chat.Chat(66026064)
    if c.is_exist():
        assert c.remove() == True
Esempio n. 7
0
def test_create():
    c = chat.Chat(66026064)
    if c.is_exist():
        c.remove()
    assert c.create() == True
    c.remove()