Creating custom node aliases inside a simpletest
It turns out that 

$edit = array(
  'title' =&gt; 'asdf',
  'path[alias]' =&gt; 'qwerty',
);


was correct, but that I needed to add the permission 'create url aliases' to the drupalCreateUser array.