Matt Rásó-Barnett HPC SysAdmin working for School of Maths and Physical Sciences. Involved with the Grid, a distributed computing project processing data for the LHC.
Published

Thu 28 August 2014

←Home

Demo page of Blog

Subtitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Python

def testLoginProcess(self):
    login = self.app.get(reverse('auth_login'))
    login.form['username'] = 'danu'
    login.form['password'] = 'test123'
    response = login.form.submit('Log in').follow()
    assert_equals('200 OK', response.status)
    assert_contains(response, 'Welcome danu :]', count=1, status_code=200)

def testLoginWithInvalidCredentials(self):
    login = self.app.get(reverse('auth_login'))
    login.form['username'] = 'foo'
    login.form['password'] = 'bar'
    response = login.form.submit('Log in')
    assert_contains(
        response,
        'Please enter a correct username and password. '
        'Note that both fields are case-sensitive.',
        count=1,
        status_code=200
    )

Bash

$ cd $path_to_project
$ git init
$ git add $path_to_file $path_to_directory ... # Add as many
$ files/directories as you want to track
$ git commit

List

  • lakjdsfl alaksjdflk lsadjf lsdja
  • alsjdflk alsjf lasdjfl sdlkfj alk
  • alkjdsflaj skja sldkjflask fk
  • kjalkj;fdlkjflkjsd lkfjdlskajf lkd

Images

infiniband ftw!
Go Top
comments powered by Disqus