Statistics
| Branch: | Tag: | Revision:

root / social / tests / backends / test_email.py @ a0a04c0a

History | View | Annotate | Download (484 Bytes)

1
from social.tests.backends.legacy import BaseLegacyTest
2

    
3

    
4
class EmailTest(BaseLegacyTest):
5
    backend_path = 'social.backends.email.EmailAuth'
6
    expected_username = 'foo'
7
    response_body = 'email=foo@bar.com'
8
    form = """
9
    <form method="post" action="{0}">
10
        <input name="email" type="text">
11
        <button>Submit</button>
12
    </form>
13
    """
14

    
15
    def test_login(self):
16
        self.do_login()
17

    
18
    def test_partial_pipeline(self):
19
        self.do_partial_pipeline()