'should provide a way to change file field value'

def test_attach_file(self):

    file_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'mockfile.txt')
    self.browser.attach_file('file', file_path)
    self.browser.find_by_name('upload').click()
    html = self.browser.html
    self.assertIn('text/plain', html)
    self.assertIn(open(file_path, 'rb').read().decode('utf-8'), html)
