Test sms

44% => 81%
Such URL encode
On Jul 25, 2014 5:30 PM, "Chelsea Pugh" <notifications@github.com> wrote:

> In sms/sms_test.go:
>
> > @@ -60,5 +66,41 @@ func TestListFilterReader(t *testing.T) {
> >  	if "?DateSent=2010-08-16" != f.getQueryString() {
> >  		t.Errorf("url encoding of filter should encode dates in GMT, found => %s", f.getQueryString())
> >  	}
> > +}
> > +
> > +func TestGetSms(t *testing.T) {
> > +	_, err := act.Get("sldkfj")
> > +	assert.Error(t, err)
> > +
> > +	// TODO: test HTTP call
> > +}
> > +
> > +func TestPostValidate(t *testing.T) {
> > +	b, err := ioutil.ReadAll(testSmsPostFixture.GetReader())
> > +	assert.Nil(t, err)
> > +	form := string(b)
> > +
> > +	assert.Contains(t, form, "Body=Jenny+please%3F%21+I+love+you+%3C3")
>
> such test
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/natebrennand/twiliogo/pull/68/files#r15430534>.
>