import faucet
import unittest
import re


class FacuetTestCase(unittest.TestCase):

    def setUp(self):
        self.app = faucet.app.test_client()

    def test_home(self):
        rv = self.app.get('/')
        assert 'Home' in rv.data

    def test_balance(self):
        rv = self.app.get('/')
        assert 'doge balance is' in rv.data

    def test_dontation_address(self):
        rv = self.app.get('/')
        DOGEREGEX = re.compile('[1-9A-HJ-NP-Za-km-z]{34}')
        assert DOGEREGEX.search(rv.data)

    def submit_address(self, address):
        return self.app.post('/', data=dict(address=address))

    def test_addresses(self):
        rv = self.submit_address('foo')
        assert 'address is not good' in rv.data
        rv = self.submit_address('DH8EkHiwpzCmjm3R9sCcxdUqqgykmwR5f1')
        assert 'address is good' in rv.data


if __name__ == '__main__':
    unittest.main()

d2c2c260072b0e7abf4a809e7fc2b4b1a8428118
<mask token>


class FacuetTestCase(unittest.TestCase):

    def setUp(self):
        self.app = faucet.app.test_client()

    def test_home(self):
        rv = self.app.get('/')
        assert 'Home' in rv.data

    def test_balance(self):
        rv = self.app.get('/')
        assert 'doge balance is' in rv.data
    <mask token>

    def submit_address(self, address):
        return self.app.post('/', data=dict(address=address))
    <mask token>


<mask token>

<mask token>


class FacuetTestCase(unittest.TestCase):

    def setUp(self):
        self.app = faucet.app.test_client()

    def test_home(self):
        rv = self.app.get('/')
        assert 'Home' in rv.data

    def test_balance(self):
        rv = self.app.get('/')
        assert 'doge balance is' in rv.data
    <mask token>

    def submit_address(self, address):
        return self.app.post('/', data=dict(address=address))

    def test_addresses(self):
        rv = self.submit_address('foo')
        assert 'address is not good' in rv.data
        rv = self.submit_address('DH8EkHiwpzCmjm3R9sCcxdUqqgykmwR5f1')
        assert 'address is good' in rv.data


<mask token>

<mask token>


class FacuetTestCase(unittest.TestCase):

    def setUp(self):
        self.app = faucet.app.test_client()

    def test_home(self):
        rv = self.app.get('/')
        assert 'Home' in rv.data

    def test_balance(self):
        rv = self.app.get('/')
        assert 'doge balance is' in rv.data

    def test_dontation_address(self):
        rv = self.app.get('/')
        DOGEREGEX = re.compile('[1-9A-HJ-NP-Za-km-z]{34}')
        assert DOGEREGEX.search(rv.data)

    def submit_address(self, address):
        return self.app.post('/', data=dict(address=address))

    def test_addresses(self):
        rv = self.submit_address('foo')
        assert 'address is not good' in rv.data
        rv = self.submit_address('DH8EkHiwpzCmjm3R9sCcxdUqqgykmwR5f1')
        assert 'address is good' in rv.data


if __name__ == '__main__':
    unittest.main()

import faucet
import unittest
import re


class FacuetTestCase(unittest.TestCase):

    def setUp(self):
        self.app = faucet.app.test_client()

    def test_home(self):
        rv = self.app.get('/')
        assert 'Home' in rv.data

    def test_balance(self):
        rv = self.app.get('/')
        assert 'doge balance is' in rv.data

    def test_dontation_address(self):
        rv = self.app.get('/')
        DOGEREGEX = re.compile('[1-9A-HJ-NP-Za-km-z]{34}')
        assert DOGEREGEX.search(rv.data)

    def submit_address(self, address):
        return self.app.post('/', data=dict(address=address))

    def test_addresses(self):
        rv = self.submit_address('foo')
        assert 'address is not good' in rv.data
        rv = self.submit_address('DH8EkHiwpzCmjm3R9sCcxdUqqgykmwR5f1')
        assert 'address is good' in rv.data


if __name__ == '__main__':
    unittest.main()
