bodyBytesIs function
Implementation
Checker<Response> bodyBytesIs(List<int> expected) => (Response resp) {
if (_bodyBytesEquality.equals(expected, resp.bodyBytes))
return <Mismatch>[
new EqualityMismatch(expected, resp.body,
customMessage: (m) =>
'Expected body ${m.expected} but found ${m.actual}!')
];
return <Mismatch>[];
};