Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4006_deffer_project-email/test_tools.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (26 sloc)
980 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unittest import TestCase | |
class Testemail_client(TestCase): | |
def test_email_sending(self): | |
from tools import email_client as f | |
x = f.email_sending('jig@gmail.com', 456) | |
self.assertEqual(x, 0) | |
class Testemail_client(TestCase): | |
def test_verification(self): | |
from tools import email_client as f | |
x = f.verification('jig@gmail.com') | |
self.assertEqual(x, 0) | |
class Testemail_client(TestCase): | |
def test_email_content(self): | |
from tools import email_client as f | |
x = f.email_content('jig@gmail.com', 'content') | |
self.assertEqual(x, 0) | |
class Testemail_client(TestCase): | |
def test_api_content(self): | |
from tools import email_client as f | |
x = f.api_content('sports') | |
self.assertEqual(type(x), type('hello')) | |
"""class Test(TestCase): | |
def test_sch(self): #since no data in database test will fail | |
import tools | |
x=tools.sch | |
self.assertEqual(x,0)""" |